package org.jeecg.modules.inspection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 线路区域配置
 * @Author: jeecg-boot
 * @Date:   2019-09-24
 * @Version: V1.0
 */
@Data
@TableName("set_inspection_line_area")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="set_inspection_line_area对象", description="线路区域配置")
public class InspectionLineArea {
    
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**线路id*/
	@Excel(name = "线路id", width = 15)
    @ApiModelProperty(value = "线路id")
	@Dict(dicCode = "id",dicText = "name",dictTable = "set_inspection_line")
	private String lineId;
	/**巡检区域id*/
	@Excel(name = "巡检区域id", width = 15)
    @ApiModelProperty(value = "巡检区域id")
	@Dict(dictTable = "set_inspection_area",dicText = "name",dicCode = "id")
	private String areaId;
	@TableField(exist = false)
	private String areaIdList;
	/**楼层*/
	@Excel(name = "楼层", width = 15)
    @ApiModelProperty(value = "楼层")
	private String tenantId;
	/**管理处id*/
	@Excel(name = "管理处id", width = 15)
    @ApiModelProperty(value = "管理处id")
	@Dict(dicCode = "id",dicText = "depart_name",dictTable = "sys_depart")
	private String officeId;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**createBy*/
	@Excel(name = "createBy", width = 15)
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**updateBy*/
	@Excel(name = "updateBy", width = 15)
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**delFlag*/
	@Excel(name = "delFlag", width = 15)
    @ApiModelProperty(value = "delFlag")
	private Integer delFlag;
}
